/*
 * Created on Aug 5, 2005
 *
 */
package aima.learning.framework;

public class StringAttribute implements Attribute {
	private StringAttributeSpecification spec;
	private String value;

	public StringAttribute(String value,StringAttributeSpecification spec) {
		this.spec = spec;
		this.value = value;
	}
	public String valueAsString(){
		return value.trim();
	}
	
	public String name(){
		return spec.getAttributeName().trim();
	}

}
